.chat-window {
    width: 100%;
    height: 100%;
    display: flex;

    .chat-window-left {
        width: 18%;
        height: 100%;
        border-right: 1px solid #D6D6D6;
        background: #E8E6E6;

        ul {
            overflow: hidden;
            margin-bottom: 0;

            .active {
                background-color: #DCDBDA;
            }

            li {
                padding: 15px 10px;
                box-sizing: border-box;
                height: 74px;
                display: flex;
                cursor: default;

                &:hover {
                    background-color: #DCDBDA;
                }

                .headimgurl {
                    width: 47px;
                    height: 47px;
                    margin-right: 10px;
                    position: relative;

                    img {
                        height: 100%;
                        width: 100%;
                        border-radius: 4px;
                    }

                    .ant-badge {
                        position: absolute;
                        right: -10px;
                        top: -10px;
                    }
                    // .ant-badge-dot {
                    //     width: 10px;
                    //     height: 10px;
                    //     right: 10px;
                    //     top: 10px;
                    // }
                }

                .contacts-box {
                    width: calc(100% - 60px);

                    .contacts-info {
                        display: flex;
                        justify-content: space-between;
                        margin-bottom: 4px;

                        .name {
                            color: #000;
                        }

                        .date {
                            color: #B9B9B9;
                        }
                    }
                    .news-box {
                        
                        height: 23px;
                        display: flex;
                        justify-content: space-between;
                        align-items: center;
                        .message {
                            width: 220px;
                            color: #B9B9B9;
                            white-space: nowrap;
                            overflow: hidden;
                            text-overflow: ellipsis;
                        }
                    }
                }

                &:last-child {
                    border-bottom: 1px solid #D6D6D6;
                }
            }
        }
    }

    .chat-window-right {
        width: calc(82% - 1px);

        .contact-header {
            height: 50px;
            border-bottom: 1px solid #D6D6D6;
            padding-left: 20px;
            padding-right: 10px;
            display: flex;
            align-items: center;
            justify-content: space-between;

            .name {
                font-size: 20px;
                font-weight: 500;
                cursor: pointer;
            }

            .anticon-ellipsis:active {
                color: #95EC69 !important;
            }
        }

        .dialog-box {
            display: flex;
            flex-direction: column;
            height: calc(100% - 50px);

            .chat-box {
                height: 70%;
                position: relative;
                overflow: hidden;

                .dataTime {
                    height: 30px;
                    line-height: 30px;
                    font-size: 12px;
                    text-align: center;
                    margin: 5px 0;

                    span {
                        background: rgba(170, 170, 170, 0.4);
                        color: #fff;
                        padding: 3px 8px;
                        border-radius: 2px;
                    }
                }

                .msg {
                    display: flex;
                    flex-direction: row;
                    margin: 10px 0;

                    .img-wrapper {
                        cursor: pointer;
                        img {
                            width: 36px;
                            height: 36px;
                        }
                    }

                    .message-wrapper {
                        max-width: 220px;
                        min-height: 30px;
                        margin: 0px 10px 0px 10px;

                        .message {
                            margin: 8px;
                            word-wrap: break-word; //英文换行
                        }

                    }

                    .msg-left-box {
                        margin-left: 5px;
                        margin-top: -10px;

                        .name {
                            font-size: 10px;
                            margin-bottom: 4px;
                            color: #B2B2B2;
                            margin-left: 10px;
                        }

                        .message-box {
                            position: relative;
                            display: flex;
                            flex-direction: row;

                            .message-wrapper-left {
                                border-radius: 6px;
                                position: relative;
                                background-color: #fff;
                                box-shadow: 1px 1px 2px #d3d3d3;

                                &:hover {
                                    background: #EBEBEB;

                                    &::after {
                                        border-right: 8px solid #EBEBEB;
                                    }
                                }

                                &::after {
                                    content: '';
                                    position: absolute;
                                    left: -8px;
                                    top: 10px;
                                    width: 0;
                                    height: 0;
                                    border-right: 8px solid #fff;
                                    border-top: 8px solid transparent;
                                    border-bottom: 8px solid transparent;
                                }

                            }
                        }

                    }



                    .message-wrapper-right {
                        border-radius: 6px;
                        position: relative;
                        background-color: #95EC69;
                        box-shadow: 1px 1px 2px #d3d3d3;
                        margin-right: 14px;
                        &:hover {
                            background: #89D961;

                            &::after {
                                border-left: 8px solid #89D961;
                            }
                        }

                        &::after {
                            content: '';
                            position: absolute;
                            right: -8px;
                            top: 10px;
                            width: 0;
                            height: 0;
                            border-left: 8px solid #95EC69;
                            border-top: 8px solid transparent;
                            border-bottom: 8px solid transparent;
                        }
                    }

                    .img {
                        flex: auto;
                        height: 36px;
                        width: 36px;
                        border-radius: 6px;

                    }
                }

                .msg-right {
                    flex-direction: row-reverse;
                    padding-right: 10px;
                }

                .msg-left {
                    flex-direction: row;
                    padding-left: 10px;
                    margin-top: 20px;

                    .isRead {
                        display: flex;
                        align-items: center;
                        font-size: 10px;
                        color: #B2B2B2;
                    }
                }

            }

            .input-box {
                height: 30%;
                width: 100%;
            }
        }


    }
}

.drawer-box {
    padding: 20px 20px 0;

    .user-list {
        display: flex;
        align-items: center;
        border-bottom: 1px solid #E7E7E7;
        padding-bottom: 20px;
        flex-flow: row wrap;

        li {
            width: 40px;
            height: 60px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-direction: column;
            margin: 5px 6px;
            cursor: pointer;

            p {
                margin: 0;
            }

            img {
                width: 40px;
                height: 40px;
                border-radius: 4px;
            }

            .name {
                width: 100%;
                text-align: center;
            }

            .ant-btn {
                width: 40px;
                height: 42px;
            }
        }
    }

    .configure {
        border-bottom: 1px solid #E7E7E7;
        padding-bottom: 1em;

        li {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 0;

            p {
                margin: 0;
            }

        }
    }

    .operation {
        color: #F45454;
        text-align: center;

        li {
            padding: 10px 0;
            border-bottom: 1px solid #E7E7E7;

            &:last-child {
                border-bottom: none;
            }
        }
    }
}

.v-contextmenu {
    border-radius: 4px;
    border: 1px solid #C7C7C6;
    overflow: hidden;

    .v-contextmenu-item {
        &:hover {
            background: #E2E2E2;
            color: #000;
        }
    }
}